Require payment for hosted (multi-user) Postcard#69
Merged
philipithomas merged 2 commits intomainfrom Mar 12, 2026
Merged
Conversation
Make hosted Postcard paid-only ($4/mo with 30-day free trial) while keeping solo/self-hosted completely free. Existing free accounts are grandfathered and canceled accounts stay active (no lockout). - Add grandfathered boolean to accounts, backfill existing as true - Add requires_payment? and ever_subscribed? to Account model - Add 30-day trial to Stripe checkout session - Redirect new signups and unpaid returning users to Stripe checkout - Add PaymentRequired concern to dashboard controllers - Replace two-tier pricing page with single $4/mo plan + free trial - Update CTAs to reference free trial - Update philipithomas.com URLs to philipithomas.postcard.page - Add test infrastructure and model tests Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The checkout success URL changed from page_setup_url to page_url, which changed the brakeman fingerprint. Update the ignore entry. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
grandfathered: trueand bypass payment requirementsever_subscribed?check ensures no lockout after cancellationPaymentRequiredconcern as a dashboard gate on Pages, Posts, Subscribers, and Showcase controllersTest plan
rails db:migrate— migration runs, existing accounts getgrandfathered: truerails test— all 6 new tests pass🤖 Generated with Claude Code